import http from '@/utils/request'
import { base } from '@/config'
const baseUrl = base.finance + '/userFinance'

// 企业主积分充值日志模块
const userFinance = {
  // 查询列表
  getWalletDetail: params => {
    return http.get(`${baseUrl}/getWalletDetail`, params)
  },

  // 单个用户钱包查询
  getSingleWallet: userId => {
    return http.get(`${baseUrl}/getSingleWallet/${userId}`)
  },

  // 钱包操作
  walletOperate: data => {
    return http.postJson(`${baseUrl}/walletOperate`, data)
  },

  //钱包操作
  getOpenWalletOperateFlag: () => {
    return http.get(`${baseUrl}/getOpenWalletOperateFlag`)
  }
}

export default userFinance
